package com.medusa.aps.business.modules.security.mp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medusa.aps.business.model.pagination.Page;
import com.medusa.aps.business.modules.security.model.input.MenuQueryPara;
import com.medusa.aps.business.modules.security.mp.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author: xianhui.yu
 **/
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 列表分页
     *
     * @param page
     * @param filter
     * @return
     */
    List<Menu> selectMenus(Page page, @Param("filter") MenuQueryPara filter);


    List<Menu> findParentMenus(@Param("menuIds") List<Long> menuIds);

    List<Menu> findChildrenMenus(@Param("parentIds") List<Long> parentIds);


}
